package model.expression.operator;

import java.util.List;

import model.expression.AbstractExpression;

public class OrExpression extends AbstractBinaryOperatorExpression {
	public OrExpression(List<AbstractExpression> children) {
		super(children);
	}

	@Override
	public int evaluate() {
		return (this.children.get(0).evaluate() != 0 || this.children.get(1)
				.evaluate() != 0) ? 1 : 0;
	}

}
